import yagmail,logging
def send_mail(filepath):
    mail=yagmail.SMTP(user="1641759621@qq.com",password="cypkpyfkayvfbcjh",host='smtp.qq.com')
    mail.send(to="1641759621@qq.com",subject="a3mall接口测试报告",contents="请查收",attachments=filepath)
def log_sent():
    logging.basicConfig(level=logging.DEBUG,filename='log.log',filemode='w',format="%(message)s->%(taskName)s")

